import { request } from "../request"
// 获取车险管理列表
export const insuranceList = (data) => {
  return request({
    url: 'insurance/insuranceList',
    method: 'POST',
    data
  })
}
// 导出车险
export const insuranceCreateExcel = (data) => {
  return request({
    url: 'insurance/insuranceCreateExcel',
    method: 'POST',
    data,
    responseType: "blob",
  })
}
// 审核
export const insuranceChangeStatus = (data) => {
  return request({
    url: 'insurance/insuranceChangeStatus',
    method: 'POST',
    data,
  })
}
// 发货
export const insuranceChange = (data) => {
  return request({
    url: 'insurance/insuranceChange',
    method: 'POST',
    data,
  })
}
// 搜索
export const insuranceSerach = (data) => {
  return request({
    url: 'insurance/insuranceSerach',
    method: 'POST',
    data,
  })
}
// 获取理赔列表

export const insuranceApplyList = (data) => {
  return request({
    url: 'insurance/insuranceApplyList',
    method: 'POST',
    data,
  })
}
// 修改
export const insuranceApplyChange = (data) => {
  return request({
    url: 'insurance/insuranceApplyChange',
    method: 'POST',
    data,
  })
}
// 审核通过
export const insuranceApplyChangeStatus = (data) => {
  return request({
    url: 'insurance/insuranceApplyChangeStatus',
    method: 'POST',
    data,
  })
}

// 详情
export const insuranceDetils = (data) => {
  return request({
    url: 'insurance/insuranceDetils',
    method: 'POST',
    data,
  })
}
// 详情
export const insuranceApplyDetils = (data) => {
  return request({
    url: 'insurance/insuranceApplyDetils',
    method: 'POST',
    data,
  })
}
// 详情
export const insuranceApplyDelete = (data) => {
  return request({
    url: 'insurance/insuranceApplyDelete',
    method: 'POST',
    data,
  })
}
